<?php

namespace app\admin\behavior;

class Ajax
{

    public function run(&$params)
    {
        var_dump("ajax run");
        if (request()->isPost())
        {
            var_dump("hello");
        }
    }

    public function upload_after(&$params)
    {
        var_dump("ajax upload_after");
        if (request()->isPost())
        {
            var_dump("hello");
        }
    }
}